
import java.io.Serializable;

/**
 * This class constructs TException instance and initialize its variables.  
 * @author G_14
 * @version December 2011
 */
public class TException implements Serializable {
	/**
	* Variables that will receive the input
	*/
	private String ExceptionID;
	private int status;			 /*  {1 = OK, 2 = Pending};  */
	private String classID;
	private String CourseID;
	private String TeacherID;
	private String comment;
	private String semID;
	
	/**
	* This method returns the teacher classID.
	* @return classID.
	*/	
	public String getClassID() {
		return classID;
	}

	/**
	* This method set the teacher classID.
	* @param classID.
	*/	
	public void setClassID(String classID) {
		this.classID = classID;
	}

	/**
	* This method returns the teacher CourseID.
	* @return CourseID.
	*/
	public String getCourseID() {
		return CourseID;
	}

	/**
	* This method set the teacher courseID.
	* @param courseID
	*/
	public void setCourseID(String courseID) {
		CourseID = courseID;
	}

	/**
	* This method returns the TeacherID.
	* @return TeacherID.
	*/
	public String getTeacherID() {
		return TeacherID;
	}

	/**
	* This method set the teacherID.
	* @param teacherID
	*/
	public void setTeacherID(String teacherID) {
		TeacherID = teacherID;
	}

	/**
	* This method returns the semID.
	* @return semID.
	*/
	public String getSemID() {
		return semID;
	}

	/**
	* This method set the teacher courseID.
	* @param semID
	*/
	public void setSemID(String semID) {
		this.semID = semID;
	}

	/**
	* Constructs an instance of the TException.
	*/	
	public TException() {
		super();
		// TODO Auto-generated constructor stub
	}

	/**
	* Constructs an instance of the user.
	* @param exceptionIDe
	* @param status
	* @param classID
	* @param courseID
	* @param teacherID
	* @param comment
	* @param semID
	*/	
	public TException(String exceptionID, int status, String classID,
			String courseID, String teacherID, String comment, String semID) {
		super();
		ExceptionID = exceptionID;
		this.status = status;
		this.classID = classID;
		CourseID = courseID;
		TeacherID = teacherID;
		this.comment = comment;
		this.semID = semID;
	}

	/**
	* This method returns the ExceptionID.
	* @return ExceptionID.
	*/
	public String getExceptionID() {
		return ExceptionID;
	}

	/**
	* This method set the exceptionID.
	* @param exceptionID
	*/
	public void setExceptionID(String exceptionID) {
		ExceptionID = exceptionID;
	}
}
